.chat-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;

  &__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #fafafa;
    
    &::-webkit-scrollbar {
      width: 6px;
    }
    
    &::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 3px;
    }
    
    &::-webkit-scrollbar-thumb {
      background: #c1c1c1;
      border-radius: 3px;
      
      &:hover {
        background: #a8a8a8;
      }
    }
  }

  &__empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    &-content {
      text-align: center;
      padding: 40px;
    }
    
    &-icon {
      font-size: 48px;
      color: #d9d9d9;
      margin-bottom: 16px;
      display: block;
    }
  }

  &__message-list {
    .ant-list-item {
      border: none;
      padding: 0;
      margin-bottom: 16px;
    }
  }

  &__message-item {
    width: 100%;
  }

  &__message-wrapper {
    max-width: 80%;
    
    &--user {
      margin-left: auto;
      
      .chat-content__message-card {
        background: #e6f7ff;
        border-color: #91d5ff;
      }
    }
    
    &--assistant {
      margin-right: auto;
      
      .chat-content__message-card {
        background: #f6ffed;
        border-color: #b7eb8f;
      }
    }
    
    &--system {
      margin: 0 auto;
      max-width: 60%;
      
      .chat-content__message-card {
        background: #fff7e6;
        border-color: #ffd591;
        text-align: center;
      }
    }
  }

  &__message-header {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
  }

  &__avatar {
    width: 32px;
    height: 32px;
    
    &--user {
      background: #1890ff;
    }
    
    &--assistant {
      background: #52c41a;
    }
    
    &--system {
      background: #fa8c16;
    }
  }

  &__sender {
    font-size: 14px;
  }

  &__time {
    font-size: 12px;
  }

  &__message-card {
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    
    &:hover {
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    &--audit {
      border-left: 4px solid #faad14;
      
      &.chat-content__message-card--assistant {
        background: #fffbe6;
        border-color: #fff566;
      }
    }
  }

  &__message-text {
    margin: 0;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
  }

  &__audit-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
  }

  &__approve-btn {
    background: #52c41a;
    border-color: #52c41a;
    
    &:hover {
      background: #73d13d;
      border-color: #73d13d;
    }
  }

  &__reject-btn {
    &:hover {
      background: #ff7875;
      border-color: #ff7875;
    }
  }

  &__input-area {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
  }

  &__input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
  }

  &__input {
    flex: 1;
    border-radius: 8px;
    
    .ant-input {
      border-radius: 8px;
      resize: none;
    }
  }

  &__send-btn {
    height: 40px;
    min-width: 80px;
    border-radius: 8px;
    font-weight: 500;
    
    &:not(:disabled) {
      box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
      
      &:hover {
        box-shadow: 0 4px 8px rgba(24, 144, 255, 0.3);
        transform: translateY(-1px);
      }
    }
  }

  &__status-tip {
    margin-top: 8px;
    text-align: center;
    padding: 8px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 6px;
  }
}

// 响应式设计
@media (max-width: 768px) {
  .chat-content {
    &__messages {
      padding: 12px;
    }
    
    &__message-wrapper {
      max-width: 90%;
      
      &--system {
        max-width: 85%;
      }
    }
    
    &__message-header {
      margin-bottom: 6px;
    }
    
    &__avatar {
      width: 28px;
      height: 28px;
    }
    
    &__sender {
      font-size: 13px;
    }
    
    &__time {
      font-size: 11px;
    }
    
    &__input-area {
      padding: 12px;
    }
    
    &__input-wrapper {
      gap: 8px;
    }
    
    &__send-btn {
      height: 36px;
      min-width: 60px;
      font-size: 12px;
    }
  }
}

@media (max-width: 480px) {
  .chat-content {
    &__message-wrapper {
      max-width: 95%;
    }
    
    &__audit-actions {
      .ant-space {
        width: 100%;
        justify-content: center;
      }
      
      .ant-btn {
        flex: 1;
      }
    }
  }
}